.api-config-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.config-toggle-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.config-toggle-btn:hover {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.config-panel {
  position: absolute;
  top: 100%;
  right: 0;
  width: 400px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 20px;
  margin-top: 10px;
  max-height: 600px;
  overflow-y: auto;
}

.current-api {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.current-api h3,
.available-apis h3,
.custom-api h3 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 16px;
}

.current-api-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.api-url {
  color: #666;
  font-family: monospace;
  font-size: 12px;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
}

.api-description {
  color: #888;
  font-size: 12px;
}

.available-apis {
  margin-bottom: 20px;
}

.api-option {
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fafafa;
}

.api-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.api-actions {
  display: flex;
  gap: 8px;
}

.switch-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
  background: #007bff;
  color: white;
}

.switch-btn:hover {
  background: #0056b3;
}

.custom-api {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.custom-input {
  display: flex;
  gap: 8px;
}

.custom-input input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.custom-input input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.custom-input button {
  padding: 8px 16px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.custom-input button:hover {
  background: #218838;
}

.config-actions {
  text-align: center;
}

.close-btn {
  padding: 8px 20px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.close-btn:hover {
  background: #5a6268;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .config-panel {
    width: 350px;
    right: -50px;
  }
  
  .api-actions {
    flex-direction: column;
  }
  
  .custom-input {
    flex-direction: column;
  }
} 